<p>Daftar data kode dan nama negara</p>

<form class="form-inline" method="get" action="negara.php">
	Go to page
  	<select name="pg" class="input-mini">  	  	    	  	
  		{section name=foo start=1 loop=$paging+1 step=1}
  		<option {if $smarty.section.foo.index eq $select}selected{/if} value="{$smarty.section.foo.index}">
  			{$smarty.section.foo.index}
  		</option>  		
  		{/section}
  	</select>	
  	<button type="submit" class="btn">Go</button>
</form>

<table class="table table-bordered table-hover" style="width: 60%">
	<thead>
		<tr>
			<th>Code Negara</th>
			<th>Nama Negara</th>			
			<th></th>
		</tr>	
	</thead>	
	<tbody>
		{foreach from=$negara item=val}
		<tr>
			<td>{$val.code}</td>
			<td>{$val.nationality}</td>			
			<td>
				<a href="edit_negara.php?id={$val.id_nationality}" class="btn btn-mini btn-primary">
					<i class="icon-pencil"></i> Edit</a>
			</td>
		</tr>	
		{/foreach}
	</tbody>	
</table>	
	